From 884ec5f334cdd0fe27b6e0dc7da27aa18519fc02 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 26 Sep 2007 17:11:07 +0100 Subject: [PATCH] xend: Slightly finesse allocation of vmpath in xenstore. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 35149ed4eb..73ae50bffb 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -355,7 +355,9 @@ class XendDomainInfo: self.vmpath = vmpath i = 0 while self.vmpath == None: - self.vmpath = XS_VMROOT + self.info['uuid'] + '/' + str(i) + self.vmpath = XS_VMROOT + self.info['uuid'] + if i != 0: + self.vmpath = self.vmpath + '-' + str(i) try: if self._readVm("uuid"): self.vmpath = None -- 2.30.2